package Prototype.PrototypeManager;

import java.util.Hashtable;

public class MyFruitStore {
    private static Hashtable fruitTable = new Hashtable<Integer,MyFruit>();

    public void add(Integer key,MyFruit fruit)
    {
        fruitTable.put(key,fruit);
    }

    public MyFruit get(Integer key)
    {
        MyFruit fruit = (MyFruit)fruitTable.get(key);
        return (MyFruit) fruit.clone();
    }


}
